package com.hmall.model;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Table(name = "mall_auction")
public class MallAuction {
    @Id
    private Integer id;

    @Column(name = "start_time")
    private Date startTime;

    @Column(name = "end_time")
    private Date endTime;

    @Column(name = "package_no")
    private Long packageNo;

    @Column(name = "package_name")
    private String packageName;

    /**
     * 最低加价
     */
    @Column(name = "lowest_price")
    private BigDecimal lowestPrice;

    @Column(name = "start_price")
    private BigDecimal startPrice;

    /**
     * 0:预热中  1:竞拍中  2:竞拍成功  3:流拍 4:已录入nc 5:未开始预热
     */
    private Integer status;

    @Column(name = "create_time")
    private Date createTime;

    /**
     * 竞拍次数
     */
    @Column(name = "auction_count")
    private Integer auctionCount;

    /**
     * 最高价
     */
    @Column(name = "highest_price")
    private BigDecimal highestPrice;

    /**
     * 提交人id
     */
    @Column(name = "submit_user_id")
    private Integer submitUserId;

    /**
     * 定金
     */
    @Column(name = "margin")
    private BigDecimal margin;

}